import { IFeidaoAiMobile } from '@dfeidao/atom-mobile/interfaces';
import set from '@dfeidao/atom-mobile/local/set';
import a001 from './a001';
export default async function a002(fd: IFeidaoAiMobile, e: {
	i: number,
	ref: { props: { heading: string } }
	from: number
}) {
	// 切换页签
	if (e.i === 1) {
		set(fd, 'type', 1);// 1 签到和未签到/2 请假
		set(fd, 'sign_in', 2);// 2 签到/1 未签到
	} else if (e.i === 2) {
		set(fd, 'type', 2);// 1 签到和未签到/2 请假
	} else {
		set(fd, 'type', 1);// 1 签到和未签到/2 请假
		set(fd, 'sign_in', 1);// 2 签到/1 未签到
	}
	set(fd, 'page_no', 1);
	a001(fd);
}
